:root {
    --page-side-pad: clamp(20px, 3.2vw, 60px);
    --content-max: 1920px;
}

/* 引入自定义字体 */
@font-face {
    font-family: 'MontserratBold';
    src: url('../fonts/Montserrat-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MontserratLight';
    src: url('../fonts/Montserrat-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('../fonts/Montserrat-Regular.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat Semi Bold';
    src: url('../fonts/Montserrat Semi Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'MontserratLight', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.layout-wrapper {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= 导航栏占位 ================= */
.nav-offset {
    height: clamp(64px, 5.2vw, 95px);
    width: 100%;
}

/* ================= 主体内容 ================= */
.mario-main {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: clamp(24px, 2vw, 40px) var(--page-side-pad) 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================= 工作室介绍区域 ================= */
.studio-intro {
    max-width: 1539px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(100px, 746px) minmax(150px, 550px);
    justify-content: space-between;
    align-items: start;
    gap: clamp(10px, 5vw, 240px);
    margin-bottom: clamp(20px, 3vw, 163px);
}

.portrait-wrap {
    width: 100%;
    max-width: clamp(200px, 35vw, 746px);
    max-height: clamp(240px, 43vw, 906px);
    justify-self: start;
}

.portrait-wrap img {
    width: 100%;
    height: auto;
    max-width: clamp(200px, 35vw, 746px);
    max-height: clamp(240px, 43vw, 906px);
    display: block;
    object-fit: cover;
}

.studio-copy {
    text-align: center;
    justify-self: end;
}

.studio-copy h1 {
    font-family: 'MontserratLight', Arial, sans-serif;
    font-size: clamp(20px, 1.5vw, 40px);
    font-weight: clamp(300, 2vw, 40);
    line-height: 1.15;
    margin-bottom: clamp(5px, 1vw, 10px);
    letter-spacing: 0.4px;
    color: #fff;
    text-align: center;
}

.studio-copy p {
    font-family: 'MontserratLight', Arial, sans-serif;
    font-size: clamp(10px, 0.8vw, 18px);
    color: #d4d4d4;
    max-width: clamp(260px, 30vw, 520px);
    margin-bottom: clamp(10px, 1vw, 24px);
    text-align: center;
}

.studio-copy .studio-copy-title {
    margin-top: clamp(69px, 11vw, 240px);
}

.studio-copy .studio-copy-location {
    margin-bottom: clamp(30px, 5.5vw, 153px);
}

.studio-copy .studio-copy-desc {
    margin-bottom: clamp(20px, 5vw, 100px);
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: normal;
    max-width: clamp(100px, 23vw, 600px);
}

.studio-copy a {
    font-family: 'MontserratLight', Arial, sans-serif;
    color: #fff;
    font-size: clamp(10px, 0.9vw, 15px);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ================= 作品展示区域 ================= */
.works-section {
    padding-top: clamp(10px, 1.5vw, 28px);
    margin-top: clamp(10px, 1vw, 20px);
    width: 100%;
    max-width: 1539px;
}

.works-title {
    font-family: 'MontserratLight', Arial, sans-serif;
    font-size: clamp(10px, 0.8vw, 15px);
    line-height: 1.45;
    color: #fff;
    margin-bottom: clamp(10px, 1vw, 24px);
    letter-spacing: 0.3px;
}

.works-gallery {
    width: 100%;
    max-width: 1539px;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(14px, 1.6vw, 24px);
    background: black;
}

.works-gallery figure {
    width: 100%;
}

.works-gallery img {
    width: 100%;
    display: block;
    object-fit: cover;
    background: #000000;
}

.works-credit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: clamp(8px, 1vw, 16px);
    font-size: clamp(10px, 0.72vw, 18px);
    color: #f2f2f2;
    letter-spacing: 0.4px;
    width: 100%;
    max-width: 1539px;
    font-family: 'MontserratBold', Arial, sans-serif;
}

.works-credit a {
    color: #fff;
    text-decoration: none;
}

.works-credit a:hover {
    text-decoration: underline;
}

/* ================= 响应式适配 ================= */
@media (max-width: 980px) {
    .studio-intro {
        grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
        gap: clamp(16px, 4vw, 48px);
        max-width: 980px;
        margin-left: auto;
        margin-right: auto;
    }

    .portrait-wrap {
        max-width: clamp(220px, 38vw, 420px);
    }

    .studio-copy {
        justify-self: end;
        text-align: center;
    }

    .studio-copy h1 {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .layout-wrapper {
        width: 100%;
    }

    .nav-offset {
        height: 88px;
    }

    .mario-main {
        padding-top: 15px;
        padding-right: 12px;
    }

    .studio-intro {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: clamp(14px, 2.6vw, 28px);
        align-items: stretch;
    }

    .portrait-wrap {
        max-width: 100%;
        justify-self: center;
        max-height: 100%;
    }

    .portrait-wrap img {
        width: 100%;
        max-height: 100%;
        height: auto;
        display: block;
    }

    .studio-copy {
        justify-self: center;
        transform: none;
        text-align: center;
        margin-top: 8px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .studio-copy h1 {
        font-size: clamp(16px, 4.5vw, 22px);
        margin-bottom: 10px;
    }

    .studio-copy p {
        font-size: clamp(12px, 3vw, 15px);
        max-width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .studio-copy .studio-copy-title {
        margin-top: 0;
    }

    .studio-copy .studio-copy-location {
        margin-bottom: clamp(10px, 2vw, 16px);
    }

    .studio-copy .studio-copy-desc {
        font-size: clamp(11px, 3vw, 14px);
        text-align: justify;
        text-align-last: left;
        text-justify: inter-character;
        -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 6 3 2;
        hyphenate-limit-lines: 2;
        word-spacing: normal;
        letter-spacing: 0.2px;
        word-break: break-word;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .studio-copy a {
        font-size: clamp(11px, 2.5vw, 14px);
    }

    .works-credit {
        font-size: 10px;
    }
}

@media (max-width: 479px) {
    .nav-offset {
        height: 60px;
    }

    .mario-main {
        padding-top: 15px;
        padding-right: 12px;
    }

    .studio-intro {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
    }

    .portrait-wrap {
        max-width: 100%;
        justify-self: center;
        max-height: 100%;
    }

    .portrait-wrap img {
        max-width: 100%;
        max-height: 100%;
    }

    .studio-copy {
        justify-self: center;
        transform: none;
        text-align: center;
        margin-top: 8px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .studio-copy h1 {
        font-size: clamp(15px, 4.5vw, 20px);
        margin-bottom: 8px;
    }

    .studio-copy p {
        font-size: clamp(11px, 3vw, 14px);
        max-width: 100%;
        margin-bottom: 8px;
        text-align: center;
    }

    .studio-copy .studio-copy-title {
        margin-top: 0;
    }

    .studio-copy .studio-copy-location {
        margin-bottom: clamp(8px, 2vw, 12px);
    }

    .studio-copy .studio-copy-desc {
        margin-bottom: clamp(8px, 2vw, 12px);
        max-width: 100%;
        line-height: 1.6;
        font-size: clamp(11px, 3vw, 14px);
        text-align: justify;
        text-align-last: left;
    }

    .studio-copy a {
        font-size: clamp(10px, 2.5vw, 13px);
    }
}